package com.parseword2;

// 解析词汇结果
public class ParseWordResult{
	private String frontText;	// 前面的文本
	private String wordText;	// 截取词汇
	private String rearText;	// 后面的文本
	public ParseWordResult(String frontText, String wordText, String rearText) {
		this.frontText = frontText;
		this.wordText = wordText;
		this.rearText = rearText;
	}
	public String getFrontText() {
		return frontText;
	}
	public String getWordText() {
		return wordText;
	}
	public String getRearText() {
		return rearText;
	}
	
	@Override
	public String toString() {
		StringBuilder text = new StringBuilder();
		text.append("{frontText:'").append(frontText).append("',");
		text.append("wordText:'").append(wordText).append("',");
		text.append("rearText:'").append(rearText).append("'}");
		return text.toString();
	}
}
